package com.ch.databinddemo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import com.ch.databinddemo.databinding.ActivityBindBinding

class BindActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val activityBindBinding: ActivityBindBinding =
            DataBindingUtil.setContentView(this, R.layout.activity_bind)
        activityBindBinding.userModel=UserModel(Penson("niu"))
    }
}